using System;
using System.Web;
using System.Web.UI;

namespace ContinualFlame.Locus
{	
	public partial class index : System.Web.UI.Page
	{
		protected bool createdSession = false;
		protected string gmSessionUrl = null;
		protected string playerSessionUrl = null;
		
		protected void Page_Load(object sender, EventArgs e)
		{
			if (this.IsPostBack && Request.Params["btnCreateSession"] != null)
			{
				Session s = SessionManager.Instance.CreateSession();
				
				createdSession = true;
				gmSessionUrl = String.Format("/JoinGame.aspx?id={0}&key={1}", s.Id, s.GmKey);
				playerSessionUrl = String.Format("/JoinGame.aspx?id={0}&key={1}", s.Id, s.PlayerKey);
			}
		}
				
	}
}
